POV-Ray : Newsgroups : povray.unofficial.patches : MegaPOV quirks and questions.. : Re: MegaPOV quirks and questions.. Server Time
2 Sep 2024 06:14:44 EDT (-0400)
  Re: MegaPOV quirks and questions..  
From: Margus Ramst
Date: 25 Jul 2000 11:41:15
Message: <397DA722.A87A6A01@peak.edu.ee>
Alex Vandiver wrote:
> 
> No -- you're missing the point.  The version I wrote leaves a macro, b(),
> defined after a(foo) closes, which is dependant on what foo was at the time
> a(foo) was called.

Then how about this:

#macro a(foo)
   #if (foo)
     #declare Switch=1;
   #else
     #declare Switch=0;
   #end
#end

#if(Switch)
   #macro b()
      // do one thing
   #end
#else
   #macro b()
      // do another thing
   #end
#end

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.